<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<c:set var="module" value="designCollection"/>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
		<form action="${ctx }/admin/designCollection/save?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
			<div class="form-group">
                 <label class="col-sm-2 control-label">设计方案</label>
                 <div class="col-sm-10">
                 	<%-- <input type="text" class="form-control" name="design.id" value="${n.design.id }"> --%>
                 	<input type="hidden" id="design-id" name="design.id" value="${n.design.id }" class="form-control">
                 	<input type="text"  class="form-control" id="design-title" name="design.title" value="${n.design.title }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/design/list',
						                 	name: 'title',
						                 	idInput: 'design-id',
						                 	nameInput: 'design-title'
						                 	})" />
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">用户</label>
                 <div class="col-sm-10">
                 	<%-- <input type="text" class="form-control" name="user.id" value="${n.user.id }"> --%>
                 	<input type="hidden" placeholder="用户" id="user-id" name="user.id" value="${n.user.id }" class="form-control">
                 	<input type="text" class="form-control" id="username" name="user.nickName" value="${n.user.nickName }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/user/list',
						                 	name: 'nickName',
						                 	idInput: 'user-id',
						                 	nameInput: 'username'
						                 	})" />
                 </div>
             </div>	
        	
		</form>
</div>

<%@include file="/common/foot.jsp" %>

</body>
</html>
